package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_dingdan;
import cn.com.api.service.base.T_dingdanServiceBase;

/**
 * 
 */
@Service
public interface ApiT_dingdanService extends T_dingdanServiceBase {

	/**
	 * 根据不同的条件
	 * @param conditions
	 * @return
	 */
	public ApiT_dingdan findDingDan(ApiT_dingdan conditions);
	
	/**
	 * 根据订单id查询订单详情
	 * @param id
	 * @return
	 */
	public ApiT_dingdan findDingDanInfo(int id);
	
	/**
	 * 根据订单id数组批量获取订单详情
	 * @param rids
	 * @return
	 */
	public List<ApiT_dingdan> batchDingDansInfo(Integer[] rids);
	
	/**
	 * 更新订单
	 * @param newdingdan
	 * @return
	 */
	public int updateDingdan(ApiT_dingdan newdingdan);
	
	/**
	 * 根据订单id数组批量更新订单打印状态
	 * @param rids
	 * @return
	 */
	public int batchUpdateDingdanPrintStatus(Integer[] rids);
	
	//根据订单titles查询订单详情
	public ApiT_dingdan findbytitles(String titles);
	
	/**
	 * 取消订单
	 * @param orderId
	 * @param duty 责任方
	 * @return
	 */
	public Map<String,Object> cancleOrder(String orderId,String duty,String remark) throws Exception;
}
